package com.tanhua.backmanage.service;



import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.time.Duration;


@Service
@Slf4j
public class VerificationService {


    @Autowired
    private RedisTemplate<String, String> redisTemplate;

    public void saveCap(String uuid, String code) {
        redisTemplate.opsForValue().set(uuid,code, Duration.ofMinutes(2));
    }
}
